package edu.sctu.practice.class01.fengleilin.assign03.test02;

/**
 * Created by fll on 2015/10/22.
 */
public class Main {
    public static void main(String[] args) {
        /**
         * 创建两个ComparableCircle类对象和两个ComparableCylinder类对象，并分别以它们为参数调用max方法，返回两个对象中面积较大的一个
         */
        ComparableCircle circle= new ComparableCircle(2,3,3);
        ComparableCylinder cylinder = new ComparableCylinder(3,2,2);

        Comparable ob1 = circle;
        Comparable ob2 = cylinder;

        Max max = new Max();
        max.max(ob1,ob2);


    }


}
